/*
 * XML Type:  propertyType
 * Namespace: info:fedora/fedora-system:def/foxml#
 * Java type: fedora.fedoraSystemDef.foxml.PropertyType
 *
 * Automatically generated - do not modify.
 */
package fedora.fedoraSystemDef.foxml.impl;
/**
 * An XML propertyType(@info:fedora/fedora-system:def/foxml#).
 *
 * This is a complex type.
 */
public class PropertyTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements fedora.fedoraSystemDef.foxml.PropertyType
{
    private static final long serialVersionUID = 1L;
    
    public PropertyTypeImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName NAME$0 = 
        new javax.xml.namespace.QName("", "NAME");
    private static final javax.xml.namespace.QName VALUE$2 = 
        new javax.xml.namespace.QName("", "VALUE");
    
    
    /**
     * Gets the "NAME" attribute
     */
    public fedora.fedoraSystemDef.foxml.PropertyType.NAME.Enum getNAME()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$0);
            if (target == null)
            {
                return null;
            }
            return (fedora.fedoraSystemDef.foxml.PropertyType.NAME.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "NAME" attribute
     */
    public fedora.fedoraSystemDef.foxml.PropertyType.NAME xgetNAME()
    {
        synchronized (monitor())
        {
            check_orphaned();
            fedora.fedoraSystemDef.foxml.PropertyType.NAME target = null;
            target = (fedora.fedoraSystemDef.foxml.PropertyType.NAME)get_store().find_attribute_user(NAME$0);
            return target;
        }
    }
    
    /**
     * Sets the "NAME" attribute
     */
    public void setNAME(fedora.fedoraSystemDef.foxml.PropertyType.NAME.Enum name)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$0);
            }
            target.setEnumValue(name);
        }
    }
    
    /**
     * Sets (as xml) the "NAME" attribute
     */
    public void xsetNAME(fedora.fedoraSystemDef.foxml.PropertyType.NAME name)
    {
        synchronized (monitor())
        {
            check_orphaned();
            fedora.fedoraSystemDef.foxml.PropertyType.NAME target = null;
            target = (fedora.fedoraSystemDef.foxml.PropertyType.NAME)get_store().find_attribute_user(NAME$0);
            if (target == null)
            {
                target = (fedora.fedoraSystemDef.foxml.PropertyType.NAME)get_store().add_attribute_user(NAME$0);
            }
            target.set(name);
        }
    }
    
    /**
     * Gets the "VALUE" attribute
     */
    public java.lang.String getVALUE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VALUE$2);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "VALUE" attribute
     */
    public org.apache.xmlbeans.XmlString xgetVALUE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(VALUE$2);
            return target;
        }
    }
    
    /**
     * Sets the "VALUE" attribute
     */
    public void setVALUE(java.lang.String value)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VALUE$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(VALUE$2);
            }
            target.setStringValue(value);
        }
    }
    
    /**
     * Sets (as xml) the "VALUE" attribute
     */
    public void xsetVALUE(org.apache.xmlbeans.XmlString value)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(VALUE$2);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(VALUE$2);
            }
            target.set(value);
        }
    }
    /**
     * An XML NAME(@).
     *
     * This is an atomic type that is a restriction of fedora.fedoraSystemDef.foxml.PropertyType$NAME.
     */
    public static class NAMEImpl extends org.apache.xmlbeans.impl.values.JavaStringEnumerationHolderEx implements fedora.fedoraSystemDef.foxml.PropertyType.NAME
    {
        private static final long serialVersionUID = 1L;
        
        public NAMEImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType, false);
        }
        
        protected NAMEImpl(org.apache.xmlbeans.SchemaType sType, boolean b)
        {
            super(sType, b);
        }
    }
}
